package screen_calibration;
/*************************************************
 * File:	ChromaticityData.java
 * Description:	Chromaticity coordinates of spectral stimuli.
 *
 * Author: Gene Vishnevsky  Oct. 15, 1997
*************************************************/


/**
* This class implements a pair of floating-point coordinates.
* 
*/
class XY {

	/**
	* x - coordinate
	*/
	protected float x;

	/**
	* y - coordinate
	*/
	protected float y;

	/**
	* Constructs a coordinate pair.
	* @param x, y coordinates
	*/
	public XY( float x, float y ) {
		this.x = x;
		this.y = y;
	}

	/**
	* Converts the coordinate pair to string.
	*/
	public String toString() {
		return ("[XY: " + x + ", " + y + " ]" );
	}
}

/**
* This class contains the chromaticity coordinates of spectral stimuli.
* (x,y) only; z = 1 - x - y.
*/
public class ChromaticityData {

	/**
	* Array containing chromaticity coordinates at 5-nm intervals.
	*/
	public XY wxy[];

	/**
	* Constructs the chromaticity coordinates of spectral stimuli.
	*/
	public ChromaticityData() {
		wxy = new XY[82];

		wxy[ 0] = new XY( 0.1741f,0.0050f );
		wxy[ 1] = new XY( 0.1740f,0.0050f );
		wxy[ 2] = new XY( 0.1738f,0.0049f );
		wxy[ 3] = new XY( 0.1736f,0.0049f );
		wxy[ 4] = new XY( 0.1733f,0.0048f );
		wxy[ 5] = new XY( 0.1730f,0.0048f );
		wxy[ 6] = new XY( 0.1726f,0.0048f );
		wxy[ 7] = new XY( 0.1721f,0.0048f );
		wxy[ 8] = new XY( 0.1714f,0.0051f );
		wxy[ 9] = new XY( 0.1703f,0.0058f );
		wxy[10] = new XY( 0.1689f,0.0069f );
		wxy[11] = new XY( 0.1669f,0.0086f );
		wxy[12] = new XY( 0.1644f,0.0109f );
		wxy[13] = new XY( 0.1611f,0.0138f );
		wxy[14] = new XY( 0.1566f,0.0177f );
		wxy[15] = new XY( 0.1510f,0.0227f );
		wxy[16] = new XY( 0.1440f,0.0297f );
		wxy[17] = new XY( 0.1355f,0.0399f );
		wxy[18] = new XY( 0.1241f,0.0578f );
		wxy[19] = new XY( 0.1096f,0.0868f );
		wxy[20] = new XY( 0.0913f,0.1327f );
		wxy[21] = new XY( 0.0687f,0.2007f );
		wxy[22] = new XY( 0.0454f,0.2950f );
		wxy[23] = new XY( 0.0235f,0.4127f );
		wxy[24] = new XY( 0.0082f,0.5384f );
		wxy[25] = new XY( 0.0039f,0.6548f );
		wxy[26] = new XY( 0.0139f,0.7502f );
		wxy[27] = new XY( 0.0389f,0.8120f );
		wxy[28] = new XY( 0.0743f,0.8338f );
		wxy[29] = new XY( 0.1142f,0.8262f );
		wxy[30] = new XY( 0.1547f,0.8059f );
		wxy[31] = new XY( 0.1929f,0.7816f );
		wxy[32] = new XY( 0.2296f,0.7543f );
		wxy[33] = new XY( 0.2658f,0.7243f );
		wxy[34] = new XY( 0.3016f,0.6923f );
		wxy[35] = new XY( 0.3373f,0.6589f );
		wxy[36] = new XY( 0.3731f,0.6245f );
		wxy[37] = new XY( 0.4087f,0.5896f );
		wxy[38] = new XY( 0.4441f,0.5547f );
		wxy[39] = new XY( 0.4788f,0.5202f );
		wxy[40] = new XY( 0.5125f,0.4866f );
		wxy[41] = new XY( 0.5448f,0.4544f );
		wxy[42] = new XY( 0.5752f,0.4242f );
		wxy[43] = new XY( 0.6029f,0.3965f );
		wxy[44] = new XY( 0.6270f,0.3725f );
		wxy[45] = new XY( 0.6482f,0.3514f );
		wxy[46] = new XY( 0.6658f,0.3340f );
		wxy[47] = new XY( 0.6801f,0.3197f );
		wxy[48] = new XY( 0.6915f,0.3083f );
		wxy[49] = new XY( 0.7006f,0.2993f );
		wxy[50] = new XY( 0.7079f,0.2920f );
		wxy[51] = new XY( 0.7140f,0.2859f );
		wxy[52] = new XY( 0.7190f,0.2809f );
		wxy[53] = new XY( 0.7230f,0.2770f );
		wxy[54] = new XY( 0.7260f,0.2740f );
		wxy[55] = new XY( 0.7283f,0.2717f );
		wxy[56] = new XY( 0.7300f,0.2700f );
		wxy[57] = new XY( 0.7311f,0.2689f );
		wxy[58] = new XY( 0.7320f,0.2680f );
		wxy[59] = new XY( 0.7327f,0.2673f );
		wxy[60] = new XY( 0.7334f,0.2666f );
		wxy[61] = new XY( 0.7340f,0.2660f );
		wxy[62] = new XY( 0.7344f,0.2656f );
		wxy[63] = new XY( 0.7346f,0.2654f );
		wxy[64] = new XY( 0.7347f,0.2653f );
		wxy[65] = new XY( 0.7347f,0.2653f );
		wxy[66] = new XY( 0.7347f,0.2653f );
		wxy[67] = new XY( 0.7347f,0.2653f );
		wxy[68] = new XY( 0.7347f,0.2653f );
		wxy[69] = new XY( 0.7347f,0.2653f );
		wxy[70] = new XY( 0.7347f,0.2653f );
		wxy[71] = new XY( 0.7347f,0.2653f );
		wxy[72] = new XY( 0.7347f,0.2653f );
		wxy[73] = new XY( 0.7347f,0.2653f );
		wxy[74] = new XY( 0.7347f,0.2653f );
		wxy[75] = new XY( 0.7347f,0.2653f );
		wxy[76] = new XY( 0.7347f,0.2653f );
		wxy[77] = new XY( 0.7347f,0.2653f );
		wxy[78] = new XY( 0.7347f,0.2653f );
		wxy[79] = new XY( 0.7347f,0.2653f );
		wxy[80] = new XY( 0.7347f,0.2653f );
		wxy[81] = new XY( 0.1741f,0.0050f );

	}

}


